templateViewInit = ()=>{
    searchFormInfo();

    // 已知数据渲染
    var inst = table.render({
        elem: '#deployment-list',
        id:'deployment-list-id',
        height: '#content-body-150',
        url: top.tools.getBaseUrl()+'/activiti/deploy/getPage',
        method: 'post',
        headers:{
            'Access-Token':top.tools.cookie.token(),
            'Content-Type':'application/json',
        },
        toolbar: '#dictToolbar',
        defaultToolbar: ['filter', 'exports', 'print', { // 右上角工具图标
            title: '提示',
            layEvent: 'LAYTABLE_TIPS',
            icon: 'layui-icon-tips',
            onClick: function (obj) { // 2.9.12+
                layer.alert('自定义工具栏图标按钮');
            }
        }],
        cols: [
            [
                {type: 'checkbox', width: 50},
                {type: 'numbers', title: '序号', align: 'center', width: 80},
                {field: 'key', title: 'KEY', align: 'left',width: 150},
                {field: 'name', title: '部署名称', align: 'left', minWidth: 170},
                {field: 'version', title: '版本', align: 'center',width: 60},
                {field: 'category', title: '所属分类', align: 'left',minWidth: 100},
                {field: 'deploymentTime', title: '创建时间', align: 'center',width: 160,templet:function (d){
                        return top.tools.form.formatDate(d.deploymentTime);
                    }},
                {fixed: 'right', title: '操作', align: 'center',  width: 230, toolbar: '#operateRow'}
            ]
        ],
        parseData: dataToFormat,
        data:[
            {id:1,name:'用户性别',type:'system_user_sex',status:'0',remark:'',createTime:'2021-01-05 17:03:48'}
        ],
        //skin: 'line', // 表格风格
        //even: true,
        page: true, // 是否显示分页
        limits: [15, 20, 30,50],
        limit: 15, // 每页默认显示的数量
        done: function (res, curr, count) {
            $(".layui-table th[data-field=" + 0 + "] .layui-table-cell").html("");
        }
    });
    // 工具栏事件
    table.on('toolbar(deployment-list)', function (obj) {
        var id = obj.config.id;
        var checkRow = table.checkStatus(id);
        if (checkRow.data.length<=0 && obj.event !== 'add'){
            layer.msg("请选择数据！");
            return
        }
        var data = checkRow.data;
        if (obj.event === 'add') {

        } else if (obj.event === 'apply') {

        } else  if (obj.event === 'renew') {

        }
    });
    // 触发单元格工具事件
    table.on('tool(deployment-list)', function (obj) { // 双击 toolDouble
        var data = obj.data; // 获得当前行数据
        if (obj.event === 'view') {

        }else if (obj.event === 'edit') {

        }else if (obj.event === 'del') {

        }
    });


    queryButton('deployment-list-id');
    formReset();

}
